package com.foreknow.elm.dao;

import com.foreknow.elm.po.Orders;

import java.util.List;

public interface OrdersDao {
    /**
     * 创建订单
     * @param orders
     * @return
     * @throws Exception
     */
    public int saveOrders(Orders orders) throws Exception;

    public Orders getOrdersById(Integer orderId) throws Exception;

    public List<Orders> listOrdersByUserId(String userId) throws Exception;
}
